﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Homes : System.Web.UI.Page
{
    #region 
    Funtion ft = new Funtion();
    #endregion
    protected void Page_Load(object sender, EventArgs e)
    {
        lblTitle1.Text = ft.LoadNews("N01").Title.ToString();
        imgNews.ImageUrl = "images/"+ft.getImage("N01","N01")+"";
        lblShow.Text = ft.LoadNews("N01").NewsFile.ToString();
        lblTitle2.Text = ft.LoadNews("N02").Title.ToString();
        lblShow1.Text = ft.LoadNews("N02").NewsFile.ToString();
        lblTitle3.Text = ft.LoadNews("N03").Title.ToString();
        lblShow2.Text = ft.LoadNews("N03").NewsFile.ToString();
        lblTitle4.Text = ft.LoadNews("N04").Title.ToString();
        imgN04.ImageUrl = "images/" + ft.getImage("N04","N04") + "";
        lblShow3.Text = ft.LoadNews("N04").NewsFile.ToString();

    }
}